<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="../../assets/css/base.css">
  <style>
    div {
      transform-style: preserve-3d;
      perspective: 1000px;
      transition: all 1s;
    }

    div>div>div {
      width: 300px;
      height: 300px;
      background-image: url(../../assets/images/Cheems.jpg);
    }

    .scale:hover>div {
      /*
         ● scale(x轴和y轴缩放比例)
         ● scale(x轴缩放比例, y轴缩放比例)
       */
      transform: scale(0.7, 1.3);
    }

    .scale-x:hover>div {
      transform: scaleX(0.5);
    }

    .scale-y:hover>div {
      transform: scaleY(0.5);
    }

    .scale-z:hover>div {
      transform: scaleZ(0.5);
    }

    .scale-z>div>div {
      transform: rotateX(45deg);
    }

    .scale3d:hover>div {
      /* scale3d(x轴缩放比例, y轴缩放比例, z轴缩放比例) */
      transform: scale3d(0.5, 0.5, 0.5);
    }

    .scale3d>div>div {
      transform: rotateX(45deg);
    }
  </style>
</head>

<body>
  <div class="float-left margin-left-10 scale">
    <p class="title">scale</p>
    <div>
      <div></div>
    </div>
  </div>

  <div class="float-left margin-left-10 scale-x">
    <p class="title">scaleX</p>
    <div>
      <div></div>
    </div>
  </div>

  <div class="float-left margin-left-10 scale-y">
    <p class="title">scaleY</p>
    <div>
      <div></div>
    </div>
  </div>

  <div class="float-left margin-left-10 scale-z">
    <p class="title">scaleZ</p>
    <div>
      <div></div>
      <div></div>
    </div>
  </div>

  <div class="float-left margin-left-10 scale3d">
    <p class="title">scale3d</p>
    <div>
      <div></div>
      <div></div>
    </div>
  </div>
</body>

</html>